package cn.edu.guet.springmvcdemo.service.impl;
/*
 *   @Studio:CHJY · 源梦科技
 *   @Author:lzl
 *   @Ide:IntelliJ IDEA
 *   @Creation time:2021/7/4 16:56
 */

import cn.edu.guet.springmvcdemo.model.User;
import cn.edu.guet.springmvcdemo.dao.IUserDao;
import cn.edu.guet.springmvcdemo.dao.impl.UserDaoImpl;
import cn.edu.guet.springmvcdemo.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {
    IUserDao users=new UserDaoImpl();
    @Override
    public List<User> viewAllUser() {
        return users.viewAllUser();
    }

    @Override
    public void deleteUser(String userId) {
        users.deleteUser(userId);
    }
}
